﻿using UnityEngine;
using UnityEngine.SceneManagement;

static public class ChessManager
{
    static public void StartGame()
    {
        SceneManager.LoadSceneAsync("SelectMode").completed += (AsyncOperation ao) =>
        {
            UIManager.GenerateUIFoundation();
            UIManager.OpenUI("SelectPlayPanel", typeof(SelectPlayPanel), new SelectPlayPanelModel());
        };
    }
}

